package org.yenn.pattern.aliyun.structural.facade;

import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.*;

/**
 * 步骤 4
 * 使用该外观类画出各种类型的形状。
 */
public class FacadePatternDemo {

    ShapeMaker shapeMaker = new ShapeMaker();

    /**
     * 步骤 5
     * 验证输出。
     * Inside Circle::draw() method.
     * Inside Square::draw() method.
     * Inside Rectangle::draw() method.
     */
    @Test
    public void drawCircle() {


        shapeMaker.drawCircle();

    }

    @Test
    public void drawRectangle() {
        shapeMaker.drawRectangle();

    }

    @Test
    public void drawSquare() {
        shapeMaker.drawSquare();
    }
}